<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <%@include file="/view/resource.jsp" %>
  </head>
  <body class="easyui-layout">
  	 <!-- Search panel start -->
 	 <div class="ui-search-panel" region="north" style="height: 80px;" title="过滤条件" data-options="striped: false,collapsible:false,iconCls:'icon-search',border:false" >   
 	 <form id="searchForm">
 	 	<input class="hidden" id='search_parentId' name="parentId">
 	 	<p class="ui-fields">
            <label class="ui-label">发放月份:</label> 
            <input name="shsbMonth" class="easyui-box ui-text" style="width:100px;" id="shsbMonth"">
              <!-- <input type="hidden" id="gratMonth" name="gratMonth"> -->
        </p>
        <a id="btn-search" class="easyui-linkbutton" iconCls="icon-search" >查询</a>
      </form>  
     </div> 
     <!--  Search panel end -->
     <!-- DataList  -->
	 <div region="center" border="false" >
     	<table id="data-list" ></table>
     </div>
    
     <!-- Edit Win&From -->
     <div id="edit-win" class="easyui-dialog" title="Edit Menu" data-options="closed:true,iconCls:'icon-save',modal:true"  style="width:500px;height:450px;">  
     	<form id="editForm" class="ui-form" method="post"> 
     	 <!-- 隐藏文本框 -->
     	 <input class="hidden" name="id">
     	 <input class="hidden" name="deleted">
    	 <input class="hidden" name="parentId" id='edit_parentId'>
    	 <div class="ui-edit">     	 
	               <div class="ftitle">详细</div> 
		               <span>员工编号:</span>  
		               <input class="easyui-validatebox" type="text" name="hrCode" data-options="required:false"><p>
	                <script type="text/javascript">
				     function gethmeName(){
				     var obj = document.getElementById("hrselect");
					 var index = obj.selectedIndex; // 选中索引
					 var text = obj.options[index].text;
					 document.getElementById("hbrName").value=text;
					 alert(document.getElementById("hbrName").value);
				    }
				    </script>
		               <span>姓 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</span>  
		               <input name="hbrName" id="hbrName" type="hidden">
		               <select id="hrselect" name="hrId" onchange="gethmeName()" >
		               </select><p>
		           <div class="fitem">
		           <span>所在公司:</span>
		            <select  id="hbrCompany" style="width:136px" class="easyui-combobox"  name="hbrCompany" style="width:150px; border: 1px solid #ccc"> </select><p>
		            <span>所属部门:</span>   
		            <select  id="hbrDepart" style="width:136px" class="easyui-combobox"  name="hbrDepart" style="width:150px; border: 1px solid #ccc"> </select><p>    
		               <span>出生日期:</span> 
		               <input class="easyui-validatebox" type="text" name="hbrDatebirth" data-options="required:true"><p>
		           <span>职务等级:</span>   
		            <select  id="hbrGrade" style="width:136px" class="easyui-combobox"  name="hbrGrade" style="width:150px; border: 1px solid #ccc"></select><p>
		              <span>是否转正:</span>  
		               <input class="easyui-validatebox" type="text" name="hbrPositive" data-options="required:true"><p>
		               <span>金 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额:</span> 
		               <input class="easyui-validatebox" type="text" style="width:136px"  name="hbrSalary" data-options="required:true"><p> 
		               <span>备 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</span>
		               <input class="easyui-validatebox" type="text" style="width:136px"  name="hbrDesc" data-options="required:true"><p>
		              <span>发放月份:</span> 
		               <input  id="hsbMonth" style="width:125px" class="easyui-datebox"  name="hsbMonth" style="width:150px; border: 1px solid #ccc">
		       </div>
		   </form>
		</div>
     	  <script type="text/javascript" src="<%=basePath%>/osjs/manpower/TostHrBirgiftinfo.js"></script>
     	  
     	<div id="okbir" class="easyui-dialog" title="设置礼金" data-options="closed:true,iconCls:'icon-tip',modal:true"  style="width:700px;height:450px;">
  	  			<form id="importForm" action="upload.do" class="ui-form" method="post" enctype="multipart/form-data"> 
  	               <div class="ftitle">设置礼金</div>
	                 <!-- <div class="fitem">  
		               <label>试用期礼金:</label>  
		               <input class="easyui-validatebox" value="250" type="text" id="noformal" data-options="required:true">
		           </div> 
		              <div class="fitem">  
		               <label>转正礼金:</label>  
		               <input class="easyui-validatebox" value="500" type="text" id="formal" data-options="required:true">
		           </div>  -->
		              <div class="fitem">  
		              <!--  <label>设置发放月份:</label>  
		               <input class="easyui-datebox" type="text" id="brhbrMonth" name="brhbrMonth" data-options="required:true"><br> -->
		                                           请批量导入生日信息：<br>
		            <input type="file" name="excelPath" value="选择导入文件">
		              </div>
		            <table id="peasonbri"></table><br>
		            <input type="submit"  value="确认生成生日礼金" id="chbrithgift">
		           </form>
		 
		 </div>   
				<div id="okbir1" class="easyui-dialog" title="设置礼金" data-options="closed:true,iconCls:'icon-tip',modal:true"  style="width:500px;height:450px;">
		             <form action="delLastBirgift.do" class="ui-form" name="importForm" method="post" enctype="multipart/form-data"> 
		              <div class="fitem">  
		               <span>选择要删除发放月份:</span>  
		               <input class="easyui-datebox" type="text" id="delhsbMonth" name="delhsbMonth" data-options="required:true"><br>
		              </div>
		            <input type="submit"  value="确认删除生成生日礼金" >
		            </form>
		 </div>   
  </body>
</html>